<?php
/**
 * Created by PhpStorm.
 * User: user
 * Date: 2016/3/23
 * Time: 14:07
 */

use front\assets\AppAsset;
use yii\helpers\Url;

$base = AppAsset::register($this);
$baseUrl = $base->baseUrl;
$css = <<<Css
    .u-bgc1{background-color: #ebf0f2;}
    .m-note1{background-color: #6d8b9a;color: #fff;text-align: center;padding: .5rem;}
    .m-logi-list{}
    .m-logi-list dl{padding: 1rem 0;background: url(/static/img/ico09.png) no-repeat 23% 65%;background-size:20px;font-size: .875rem;}
    .m-logi-list dl dt{float: left;width: 23%;text-align: center;padding:.25rem 5% 0 1%;color: #8dacbc;}
    .m-logi-list dl dd{float: left;width: 62%;background-color: #fff;border-radius:.35rem;padding:.8rem 2%;color: #3f5562;line-height:1.25rem;}
    .m-logi-list dl:nth-last-of-type(1){background-image: url(/static/img/ico09l.png);}

Css;

$this->registerCss($css);

$this->title = '查看物流';
?>
<body class="u-bgc1">
<div class="m-note1"><?php echo $logisticResult['type'];?></div>
<div class="m-logi-list">
    <?php foreach($logisticResult['Traces'] as $k=>$v){?>
        <dl class="f-cb"><dt><?php echo date("Y.m.d H:i",strtotime($v->AcceptTime));?></dt><dd><?php echo $v->AcceptStation;?></dd></dl>
    <?php } ?>
</div>

<script>
    $(function(){

        // 链接跳转
        $('.J_link').on('tap', function(){

            window.location.href = $(this).attr('data-url');
        });

    });
</script>
